package de.koller.inclination.render;

import de.koller.oceanFramework.math.RVec2;
import de.koller.oceanFramework.math.RVec3;

public class ParallelProjection {

	private static final float S45 = (float)Math.sin( Math.PI / 4. ) * .5f;
	
	public static RVec2 project( RVec3 v ) {
		return new RVec2( 
				v.x - S45 * v.z, 
				v.y + S45 * v.z );
	}
	
}
